package com.pine.common.beans.pineframework.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pine.common.util.time.TimeUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统审批历史查询响应体
 * </p>
 *
 * @author pine manage
 * @since 2024-10-31
 */
@Data
@Schema(title = "SysApprovalHistoryQueryResponse", description = "系统审批历史查询响应体")
public class SysApprovalHistoryQueryResponse implements Serializable {
    @Serial
    private static final long serialVersionUID = 9139417513018319038L;

    /**
     * 自增主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 审批ID
     */
    @Schema(title = "approvalId", description = "审批ID")
    private String approvalId;

    /**
     * 申请名称
     */
    @Schema(title = "name", description = "申请名称")
    private String name;

    /**
     * 申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消
     */
    @Schema(title = "status", description = "申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "createTime", description = "创建时间-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    @Schema(title = "createUserId", description = "创建人ID")
    private Long createUserId;

    /**
     * 创建人名称
     */
    @Schema(title = "createUsername", description = "创建人名称")
    private String createUsername;

    /**
     * 操作人ID
     */
    @Schema(title = "actionUserId", description = "操作人ID")
    private Long actionUserId;

    /**
     * 操作人名称
     */
    @Schema(title = "actionUsername", description = "操作人名称")
    private String actionUsername;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "actionTime", description = "操作时间-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime actionTime;

    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
}
